gtk4.git
7 years agoMerge branch 'idle-test-recentmanager' into 'master'
Matthias Clasen [Fri, 8 Feb 2019 15:01:22 +0000 (15:01 +0000)]
Merge branch 'idle-test-recentmanager' into 'master'

tests: Bulk add recent items in an idle

See merge request GNOME/gtk!568

7 years agoa11y tests: Update actionbar output
Matthias Clasen [Fri, 8 Feb 2019 14:56:14 +0000 (09:56 -0500)]
a11y tests: Update actionbar output

This changed with box packing changes.

7 years agoa11y tests: Update dialog-related output
Matthias Clasen [Fri, 8 Feb 2019 14:40:27 +0000 (09:40 -0500)]
a11y tests: Update dialog-related output

There was a change in internal dialog structure that
is reflected in this output.

7 years agoa11y tests: Update assistant ui file
Matthias Clasen [Fri, 8 Feb 2019 14:51:02 +0000 (09:51 -0500)]
a11y tests: Update assistant ui file

The conversion was done with gtk-builder-tool simplify --3to4.

7 years agoa11y tests: Update stack ui file
Matthias Clasen [Fri, 8 Feb 2019 14:29:01 +0000 (09:29 -0500)]
a11y tests: Update stack ui file

The conversion was done with gtk-builder-tool simplify --3to4.

7 years agoassistant: Fix a refcounting oversight
Matthias Clasen [Fri, 8 Feb 2019 14:49:54 +0000 (09:49 -0500)]
assistant: Fix a refcounting oversight

The assistant needs to hold a ref on the pages.

7 years agotests: Bulk add recent items in an idle
Emmanuele Bassi [Fri, 8 Feb 2019 14:37:21 +0000 (14:37 +0000)]
tests: Bulk add recent items in an idle

Instead of adding them and waiting for the changed signal to be emitted
in the main loop, there might be a race where the change signal is
emitted before we have a chance of spinning the loop.

7 years agonotify test: Omit GtkStackPage::position
Matthias Clasen [Fri, 8 Feb 2019 14:04:08 +0000 (09:04 -0500)]
notify test: Omit GtkStackPage::position

We can't change positions without a stack.

7 years agostack: Fix up property notification
Matthias Clasen [Fri, 8 Feb 2019 14:03:45 +0000 (09:03 -0500)]
stack: Fix up property notification

This was showing up in testsuite failures.

7 years agoassistant: Fix up property notification
Matthias Clasen [Fri, 8 Feb 2019 14:03:18 +0000 (09:03 -0500)]
assistant: Fix up property notification

This was showing up in testsuite failures.

7 years agostack: Make the child meta work without stack
Matthias Clasen [Fri, 8 Feb 2019 13:22:35 +0000 (08:22 -0500)]
stack: Make the child meta work without stack

We have tests that expect this to work, like defaultvalue.

7 years agoshortcuts window: Fix a leftover use of child properties
Matthias Clasen [Fri, 8 Feb 2019 13:22:06 +0000 (08:22 -0500)]
shortcuts window: Fix a leftover use of child properties

These properties are gone, use the child meta here.

7 years agoassistant: Fix the default value of has-padding
Matthias Clasen [Fri, 8 Feb 2019 13:21:42 +0000 (08:21 -0500)]
assistant: Fix the default value of has-padding

This was showing up in the defaultvalue test.

7 years agoFix compiler warnings
Matthias Clasen [Fri, 8 Feb 2019 12:55:41 +0000 (07:55 -0500)]
Fix compiler warnings

Fallout from recent GtkStackPage changes.

7 years agoci: Update the test suite name
Emmanuele Bassi [Fri, 8 Feb 2019 10:49:24 +0000 (10:49 +0000)]
ci: Update the test suite name

The project name is "gtk", not "gtk+".

7 years agoMerge branch 'stackpage' into 'master'
Matthias Clasen [Fri, 8 Feb 2019 05:22:30 +0000 (05:22 +0000)]
Merge branch 'stackpage' into 'master'

Stack page

See merge request GNOME/gtk!564

7 years agobuilder-tool: Convert assistant pages too
Matthias Clasen [Thu, 7 Feb 2019 20:34:54 +0000 (15:34 -0500)]
builder-tool: Convert assistant pages too

Do the same transformation for GtkAssistantPage that
we already do for GtkStackPage, to transform GTK 3 .ui
files to GTK 4 ways of doing things.

7 years agoassistant: Convert child properties to a child meta object
Matthias Clasen [Thu, 7 Feb 2019 20:18:49 +0000 (15:18 -0500)]
assistant: Convert child properties to a child meta object

Turn GtkAssistantPage into a public object holding the
former child properties.

7 years agomigration guide: Mention --3to4
Matthias Clasen [Thu, 7 Feb 2019 18:12:07 +0000 (13:12 -0500)]
migration guide: Mention --3to4

7 years agoSome small additions to the migration guide
Matthias Clasen [Thu, 7 Feb 2019 18:04:57 +0000 (13:04 -0500)]
Some small additions to the migration guide

Mention some of the recent changes, such as GtkButtonBox,
GtkBox, child properties.

7 years agoUpdate ui files to new stack syntax
Matthias Clasen [Thu, 7 Feb 2019 08:23:02 +0000 (03:23 -0500)]
Update ui files to new stack syntax

This conversion was done with the help of gtk4-builder-tool.

7 years agobuilder tool: Operate on multiple files
Matthias Clasen [Thu, 7 Feb 2019 17:24:49 +0000 (12:24 -0500)]
builder tool: Operate on multiple files

There is no strong reason to disallow this, when
the --replace option is used.

7 years agoDocument --3to4
Matthias Clasen [Thu, 7 Feb 2019 16:57:09 +0000 (11:57 -0500)]
Document --3to4

7 years agobuilder tool: Rewrite the simplify command
Matthias Clasen [Thu, 7 Feb 2019 12:12:15 +0000 (07:12 -0500)]
builder tool: Rewrite the simplify command

Rewrite the builder-tool simplify command to have
a full parse tree around, and perform simplifications
on that tree. This lets us rewrite GtkStack and turn
child properties into child meta objects.

7 years agotools: Split gtk-builder-tool
Matthias Clasen [Thu, 7 Feb 2019 09:12:09 +0000 (04:12 -0500)]
tools: Split gtk-builder-tool

Put each command into its own file. This is in
preparation for redoing the simplify command.

7 years agobuilder: Allow specifying objects inline
Matthias Clasen [Wed, 6 Feb 2019 23:53:06 +0000 (18:53 -0500)]
builder: Allow specifying objects inline

In addition to <property name="foo">bar</property> referring
to an object with ID bar, we now also parse
<property name="foo"><object>...
to specify a property 'inline'.

7 years agostack: Convert child properties to a child meta object
Matthias Clasen [Wed, 6 Feb 2019 17:54:18 +0000 (12:54 -0500)]
stack: Convert child properties to a child meta object

Create a GtkStackPage public object which holds the former
child properties of GtkStack.

Adjust all callers.

7 years agoUpdate Polish translation
Piotr Drąg [Wed, 6 Feb 2019 20:55:06 +0000 (21:55 +0100)]
Update Polish translation

7 years agoUpdate Polish translation
Piotr Drąg [Wed, 6 Feb 2019 20:52:29 +0000 (21:52 +0100)]
Update Polish translation

7 years agoAdwaita: menu border-radius fix from gtk3
Jakub Steiner [Wed, 6 Feb 2019 13:34:55 +0000 (14:34 +0100)]
Adwaita: menu border-radius fix from gtk3

- avoid painting over the rounded corners with background

7 years agoAdwaita: sync with stable styling
Jakub Steiner [Wed, 6 Feb 2019 12:46:00 +0000 (13:46 +0100)]
Adwaita: sync with stable styling

- fold over changes in teh stable brnch to get the same look

fixes issue #1656

7 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 6 Feb 2019 11:11:09 +0000 (12:11 +0100)]
Updated Spanish translation

7 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 6 Feb 2019 11:09:19 +0000 (12:09 +0100)]
Updated Spanish translation

7 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 6 Feb 2019 10:42:45 +0000 (11:42 +0100)]
Updated Spanish translation

7 years agoRename project files
Emmanuele Bassi [Wed, 6 Feb 2019 09:42:50 +0000 (10:42 +0100)]
Rename project files

Meson and DOAP are the last holdovers for the old "gtk+" name.

7 years agodocs: Fix project name for translators
Emmanuele Bassi [Wed, 6 Feb 2019 09:42:33 +0000 (10:42 +0100)]
docs: Fix project name for translators

7 years agotests: Fix comment for accuracy
Emmanuele Bassi [Wed, 6 Feb 2019 09:41:49 +0000 (10:41 +0100)]
tests: Fix comment for accuracy

The command line for compiling testwindowsize has changed.

7 years agodocs: Fix references to pkg-config files
Emmanuele Bassi [Wed, 6 Feb 2019 09:40:51 +0000 (10:40 +0100)]
docs: Fix references to pkg-config files

The pkg-config files for GDK were dropped in 4.0, and now the GTK
pkg-config files have been renamed.

7 years agodocs: Fix GTK links and locations
Emmanuele Bassi [Wed, 6 Feb 2019 09:39:27 +0000 (10:39 +0100)]
docs: Fix GTK links and locations

7 years agoRename more GSources to use `gtk`
Emmanuele Bassi [Wed, 6 Feb 2019 09:37:24 +0000 (10:37 +0100)]
Rename more GSources to use `gtk`

7 years agoAdjust some more pkg-config references for gtk+ to gtk rename
Rico Tzschichholz [Wed, 6 Feb 2019 08:53:17 +0000 (09:53 +0100)]
Adjust some more pkg-config references for gtk+ to gtk rename

See https://gitlab.gnome.org/GNOME/gtk/issues/1439

7 years agoMerge branch 'less-invisible' into 'master'
Matthias Clasen [Wed, 6 Feb 2019 08:26:55 +0000 (08:26 +0000)]
Merge branch 'less-invisible' into 'master'

Less invisible

See merge request GNOME/gtk!562

7 years agoMake GtkInvisible private
Matthias Clasen [Wed, 6 Feb 2019 07:06:19 +0000 (02:06 -0500)]
Make GtkInvisible private

We can't quite get rid of its use in the inspector,
but we can make it private.

7 years agoMake the invisible invisible
Matthias Clasen [Tue, 5 Feb 2019 21:52:53 +0000 (16:52 -0500)]
Make the invisible invisible

The change to make widgets visible by default broke GtkInvisibles
special-cased state handling and that in turn caused picking in
the inspector to break with another recent change.

This change makes the inspector pick button work again.

7 years agoUpdate Hungarian translation
Balázs Úr [Tue, 5 Feb 2019 20:01:40 +0000 (20:01 +0000)]
Update Hungarian translation

7 years agoUpdate Hungarian translation
Balázs Úr [Tue, 5 Feb 2019 19:57:50 +0000 (19:57 +0000)]
Update Hungarian translation

7 years agoUpdate POTFILES.in and POTFILES.skip
Piotr Drąg [Tue, 5 Feb 2019 17:35:55 +0000 (18:35 +0100)]
Update POTFILES.in and POTFILES.skip

7 years agoprintoperation-win32: Stop using an invisible
Matthias Clasen [Tue, 5 Feb 2019 15:56:40 +0000 (10:56 -0500)]
printoperation-win32: Stop using an invisible

We can just as well use a GtkWindow here. We just need
a handle. Untested.

7 years agofilechoosernativeportal: Stop using an invisible
Matthias Clasen [Tue, 5 Feb 2019 15:44:36 +0000 (10:44 -0500)]
filechoosernativeportal: Stop using an invisible

A label works just as well here, it turns out.

7 years agoReduce includes of gtkinvisible.h
Matthias Clasen [Tue, 5 Feb 2019 14:54:52 +0000 (09:54 -0500)]
Reduce includes of gtkinvisible.h

We want to get rid of GtkInvisible.

7 years agodocs: Remove reference to deleted file
Timm Bäder [Tue, 5 Feb 2019 14:15:38 +0000 (15:15 +0100)]
docs: Remove reference to deleted file

7 years agoinspector: Remove window icon
Timm Bäder [Tue, 5 Feb 2019 14:14:19 +0000 (15:14 +0100)]
inspector: Remove window icon

The property does not exist anymore and the window icon has never been
used on non-x11 backends.

7 years agomain: Prefer implicit grab widget to target widget for motion events
Timm Bäder [Tue, 5 Feb 2019 14:13:01 +0000 (15:13 +0100)]
main: Prefer implicit grab widget to target widget for motion events

When an implcit grab is going on, we don't need to consider other
widgets for motion (etc.) events.

7 years agoinfobar: Remove an unused variable
Timm Bäder [Tue, 5 Feb 2019 14:09:59 +0000 (15:09 +0100)]
infobar: Remove an unused variable

7 years agoA few forgotten button box functions
Matthias Clasen [Tue, 5 Feb 2019 13:41:52 +0000 (08:41 -0500)]
A few forgotten button box functions

7 years agowindow: Inline function into only caller
Timm Bäder [Sun, 30 Dec 2018 06:22:44 +0000 (07:22 +0100)]
window: Inline function into only caller

7 years agowindow: Remove remaining icon_list handling
Timm Bäder [Sun, 30 Dec 2018 06:02:59 +0000 (07:02 +0100)]
window: Remove remaining icon_list handling

7 years agowindow: Remove default_icon_serial
Timm Bäder [Sun, 30 Dec 2018 05:54:57 +0000 (06:54 +0100)]
window: Remove default_icon_serial

Now unused.

7 years agowindow: Remove default icon list
Timm Bäder [Sun, 30 Dec 2018 05:53:35 +0000 (06:53 +0100)]
window: Remove default icon list

7 years agowindow: Remove icon list
Timm Bäder [Sun, 30 Dec 2018 05:48:05 +0000 (06:48 +0100)]
window: Remove icon list

7 years agoRemove some unnecessary gtkwindow.h includes
Timm Bäder [Sun, 30 Dec 2018 05:40:52 +0000 (06:40 +0100)]
Remove some unnecessary gtkwindow.h includes

7 years agowindow: Remove set_default_icon
Timm Bäder [Sun, 30 Dec 2018 05:38:28 +0000 (06:38 +0100)]
window: Remove set_default_icon

7 years agowindow: Remove icon property
Timm Bäder [Sun, 30 Dec 2018 05:32:31 +0000 (06:32 +0100)]
window: Remove icon property

7 years agowindow: Remove _set_default_icon_from_file
Timm Bäder [Sun, 30 Dec 2018 05:29:12 +0000 (06:29 +0100)]
window: Remove _set_default_icon_from_file

7 years agowindow: Remove set_icon_from_file
Timm Bäder [Sun, 30 Dec 2018 05:25:57 +0000 (06:25 +0100)]
window: Remove set_icon_from_file

Not all backends support setting window icons from raw pixel data, so
remove the public API in GtkWindow for it.

7 years agoMerge branch 'kill-buttonbox' into 'master'
Matthias Clasen [Tue, 5 Feb 2019 13:06:09 +0000 (13:06 +0000)]
Merge branch 'kill-buttonbox' into 'master'

Drop GtkButtonBox

See merge request GNOME/gtk!554

7 years agoMerge branch 'master' into 'master'
Alexander Larsson [Tue, 5 Feb 2019 13:05:34 +0000 (13:05 +0000)]
Merge branch 'master' into 'master'

Ensure focus on click ( Fix #1633 )

Closes #1633

See merge request GNOME/gtk!546

7 years agoDrop gtkboxprivate.h
Matthias Clasen [Tue, 5 Feb 2019 12:54:35 +0000 (07:54 -0500)]
Drop gtkboxprivate.h

Not needed anymore.

7 years agoDrop buttonbox from tests
Matthias Clasen [Tue, 5 Feb 2019 12:40:43 +0000 (07:40 -0500)]
Drop buttonbox from tests

7 years agoMerge branch 'no-more-plus' into 'master'
Matthias Clasen [Tue, 5 Feb 2019 10:52:38 +0000 (10:52 +0000)]
Merge branch 'no-more-plus' into 'master'

Drop the "plus" from "GTK"

See merge request GNOME/gtk!558

7 years agoglade: Drop the "plus"
Emmanuele Bassi [Tue, 5 Feb 2019 10:26:54 +0000 (11:26 +0100)]
glade: Drop the "plus"

From documentation and catalog description.

7 years agogtk: Drop the "plus"
Emmanuele Bassi [Tue, 5 Feb 2019 10:26:20 +0000 (11:26 +0100)]
gtk: Drop the "plus"

Source names should use "[gtk]" without the plus.

7 years agothemes: Drop the "plus"
Emmanuele Bassi [Tue, 5 Feb 2019 10:25:41 +0000 (11:25 +0100)]
themes: Drop the "plus"

Comments and documentation.

7 years agoinspector: Drop the "plus"
Emmanuele Bassi [Tue, 5 Feb 2019 10:25:15 +0000 (11:25 +0100)]
inspector: Drop the "plus"

From user-visible strings, mostly.

7 years agomodules: Drop the plus
Emmanuele Bassi [Tue, 5 Feb 2019 09:30:33 +0000 (10:30 +0100)]
modules: Drop the plus

Use 'GTK' consistently.

7 years agoexamples: Rename the pkg-config file for GTK 4
Emmanuele Bassi [Tue, 5 Feb 2019 09:27:57 +0000 (10:27 +0100)]
examples: Rename the pkg-config file for GTK 4

We dropped the '+' and the major.minor version from the pkg-config file
name.

7 years agodemos: Drop the '+' from GTK
Emmanuele Bassi [Tue, 5 Feb 2019 09:19:57 +0000 (10:19 +0100)]
demos: Drop the '+' from GTK

The demos have user-visible text that should refer to "GTK", not "GTK+"
any more.

7 years agodocs: Drop the '+' from GTK
Emmanuele Bassi [Tue, 5 Feb 2019 09:14:31 +0000 (10:14 +0100)]
docs: Drop the '+' from GTK

We need to adapt to both the change in the name of the project, and to
the name change in the pkg-config file.

7 years agoabout dialog: Stop setting secondary
Matthias Clasen [Tue, 5 Feb 2019 08:46:31 +0000 (03:46 -0500)]
about dialog: Stop setting secondary

We no longer use a button box, so this is not available.

7 years agoMerge branch 'drop-the-plus' into 'master'
Matthias Clasen [Tue, 5 Feb 2019 08:29:39 +0000 (08:29 +0000)]
Merge branch 'drop-the-plus' into 'master'

Rename some references to GTK+

See merge request GNOME/gtk!553

7 years agoMerge branch 'pango-deprecation' into 'master'
Matthias Clasen [Tue, 5 Feb 2019 08:28:48 +0000 (08:28 +0000)]
Merge branch 'pango-deprecation' into 'master'

Pango deprecation

See merge request GNOME/gtk!555

7 years agogtk: Stop using deprecated pango api
Matthias Clasen [Thu, 31 Jan 2019 19:07:08 +0000 (14:07 -0500)]
gtk: Stop using deprecated pango api

7 years agogdk: Stop using deprecated pango api
Matthias Clasen [Thu, 31 Jan 2019 19:05:28 +0000 (14:05 -0500)]
gdk: Stop using deprecated pango api

7 years agogdk: Add a copy of some deprecated pango api
Matthias Clasen [Thu, 31 Jan 2019 19:03:49 +0000 (14:03 -0500)]
gdk: Add a copy of some deprecated pango api

We use pango_find_base_dir() in a few places, and
this api has been deprecated.

7 years agoAdd an explicit fribidi dep
Matthias Clasen [Mon, 4 Feb 2019 23:07:14 +0000 (18:07 -0500)]
Add an explicit fribidi dep

We will use fribidi api to determine text direction.

7 years agoDrop GtkButtonBox
Matthias Clasen [Mon, 4 Feb 2019 17:44:55 +0000 (12:44 -0500)]
Drop GtkButtonBox

This widget does not seem worth keeping,
and we want to get rid of child properties.

7 years agoRename some references to GTK+
Matthias Clasen [Mon, 4 Feb 2019 16:56:52 +0000 (11:56 -0500)]
Rename some references to GTK+

We are dropping the plus.

7 years agoIssue #1633 - Ensure focus on click
Mickael Istria [Fri, 1 Feb 2019 10:08:43 +0000 (10:08 +0000)]
Issue #1633 - Ensure focus on click

This is necessary to give back focus to the Broadway elements when
content is embedded in an IFrame.

Signed-off-by: Mickael Istria <mistria@redhat.com>
7 years agotestgtk: Fix image menu item child order
Timm Bäder [Sun, 3 Feb 2019 10:29:01 +0000 (11:29 +0100)]
testgtk: Fix image menu item child order

We want the image first, text second.

7 years agotooltip: Get the pointer position relative to the toplevel widget
Timm Bäder [Sun, 3 Feb 2019 06:04:39 +0000 (07:04 +0100)]
tooltip: Get the pointer position relative to the toplevel widget

Since we position the tooltip window relative to the toplevel widget and
not actually relative to the effective_toplevel, we shouldn't get the
pointer position relative to the effective_toplevel.

We previously used the pointer position (relative to the
effective_toplevel) and the anchor rect (relative to the toplevel
widget) together to calculate x_distance. This leads to wrong values in
cases where get_surface (new_tooltip_widget) != get_surface (toplevel)

Fixes #1427 in master

7 years agotooltip: Use gtk_widget_compute_bounds to get tootip widget anchor
Timm Bäder [Sun, 3 Feb 2019 05:47:57 +0000 (06:47 +0100)]
tooltip: Use gtk_widget_compute_bounds to get tootip widget anchor

Instead of using gtk_widget_get_allocated_width/height, which might
return the wrong box for the tooltip widget.

7 years agomain: Rename local variable
Timm Bäder [Sun, 3 Feb 2019 04:37:13 +0000 (05:37 +0100)]
main: Rename local variable

Make it a little clearer that this is the event widget and not just any
widget.

7 years agogtkmain: Rename event_widget to target_widget in do_event
Timm Bäder [Tue, 29 Jan 2019 04:33:38 +0000 (05:33 +0100)]
gtkmain: Rename event_widget to target_widget in do_event

The event_widget is the widget that the surface belongs to which got
this event. The target widget is the one that will receive the event.
The previous terminology was confusing.

7 years agoMerge branch 'popover-menu-position' into 'master'
Matthias Clasen [Mon, 4 Feb 2019 15:57:44 +0000 (15:57 +0000)]
Merge branch 'popover-menu-position' into 'master'

Drop GtkPopoverMenu::position

See merge request GNOME/gtk!552

7 years agoDrop GtkPopoverMenu::position
Matthias Clasen [Mon, 4 Feb 2019 15:47:18 +0000 (10:47 -0500)]
Drop GtkPopoverMenu::position

This is another unnecessary position child property.

7 years agoMerge branch 'enum-template-basename' into 'master'
Emmanuele Bassi [Mon, 4 Feb 2019 13:19:10 +0000 (13:19 +0000)]
Merge branch 'enum-template-basename' into 'master'

Use @basename@ in enumeration type templates

See merge request GNOME/gtk!550

7 years agoMerge branch 'testgtk-warning' into 'master'
Emmanuele Bassi [Mon, 4 Feb 2019 13:06:43 +0000 (13:06 +0000)]
Merge branch 'testgtk-warning' into 'master'

tests: Remove spurious gtk_container_add()

See merge request GNOME/gtk!549

7 years agoUse @basename@ in enumeration type templates
Emmanuele Bassi [Mon, 4 Feb 2019 13:02:45 +0000 (14:02 +0100)]
Use @basename@ in enumeration type templates

The @filename@ directive will use the full path of the file being parsed
for enumeration types; we should use @basename@, instead, as it improves
the reproducibility of the build by using only the file name.

7 years agotests: Remove spurious gtk_container_add()
Emmanuele Bassi [Mon, 4 Feb 2019 09:02:15 +0000 (10:02 +0100)]
tests: Remove spurious gtk_container_add()

Commit bd71e744d2e5dbd853f0c719dd3ebe6abb2f72b6 removed
gtk_box_pack_end(), but it added a gtk_container_add() with an
uninitialised widget, and the compiler is very unhappy about it.

7 years agodocs: Remove <ulink> elements
Emmanuele Bassi [Mon, 4 Feb 2019 08:53:22 +0000 (09:53 +0100)]
docs: Remove <ulink> elements

We use Markdown for documentation, not Docbook.